inspector: Cache if we have ever constructed a window
authorTimm Bäder <mail@baedert.org>
Sat, 7 Aug 2021 09:58:46 +0000 (11:58 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 18 Sep 2021 06:29:18 +0000 (08:29 +0200)
commit2bc82da34deff52c3d9ad953903f62bac6a5075e
tree1030c9e609510bfa6a981b97836e11d2ac93cc3a
parent155e0f3dfb679731c8d5a2302ab47ca632ab0f55
inspector: Cache if we have ever constructed a window

Silly optimization to get rid of

gtk_main_do_event
  gtk_inspector_handle_event
    gtk_inspector_window_get_for_display
      g_object_get_data

showing up in profiles even though it's useless since we've never even
created any inspector window in the first place.
gtk/inspector/window.c